﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="head.aspx.cs" Inherits="Web.head" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中油瑞飞协同办公系统</title>
<script type="text/javascript" src="Javascript/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="Javascript/sysNongliTime.js"></script>
<link href="App_Themes/NewPage/Styles/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    //全文检索
    function fulltext_search() {
        var text = $("#fulltext").val();
        text = encodeURIComponent(text);
        window.open("Views/FullTextRetrieval/QueryResultsSearch.aspx?searchText=" + text);
    }
    function enterKey(e) {
        var code;
        if (!e) {
            var e = window.event;
        }
        if (e.keyCode) {
            code = e.keyCode;
        }
        else if (e.which) {
            code = e.which;
        }
        if (code == 13) {
            fulltext_search();
            return false;
        }
    }
    window.onload = function()
    { document.getElementById("fulltext").onkeydown = enterKey; }
</script>
</head>
<body>
<div id="header">
  <div id="logo"></div>
<%--  <div id="search">
    <input id="fulltext" name="fulltext" type="text" class="search_input"  onblur="if(this.value=='')value='- 请输入关键字 -';" onfocus="if(this.value=='- 请输入关键字 -')value='';" value="- 请输入关键字 -" size="10" />
    <input type="Button" name="Button" class="search_btn" onclick="fulltext_search();" />
  </div>--%>
</div>
<!----- 导航栏 start ----->
<div id="navigation">
  <!-----当前用户信息 start----->
  <div id="user"><img src="App_Themes/NewPage/icons/info_user.png" width="16" height="16" class="icon1" />欢迎您，<%=this.CurrentUser.User_Name %></div>
  <!-----当前用户信息 end----->
  <div id="option">
    <ul>
      <%--<li><img src="App_Themes/NewPage/icons/user_shezhi.png" width="16" height="16" class="icon1" /><a href="#">系统设置</a></li>--%>
      <li><img src="App_Themes/NewPage/icons/user_zhuxiao.png" width="16" height="16" class="icon1" /><a href="Views/SystemLogin/Logout.aspx">注销</a></li>
<%--      <li><img src="App_Themes/NewPage/icons/user_tuichu.png" width="16" height="16" class="icon1" /><a href="">退出</a></li>--%>
    </ul>
  </div>
  <div id="time"><img src="App_Themes/NewPage/icons/info_time.png" width="16" height="16" class="icon1" />
    <!-- #BeginDate format:fCh2m --><span></span><!-- #EndDate -->
  </div>
  <div id="menu">
    <ul>
      <li class="current"><a href="javascript:void(0);">系统首页</a></li>
      <!--“current”套用于当前页面情况下，此时不挂链接-->
      <li><a href="javascript:void(0);">工作助手</a></li>
      <li><a href="javascript:void(0);">信息发布</a></li>
      <li><a href="javascript:void(0);">文件搜索</a></li>
      <li><a href="javascript:void(0);">系统设置</a></li>
      <li><a href="javascript:void(0);">个人设置</a></li>
      <li><a href="javascript:void(0);">会议管理</a></li>
      <li><a href="javascript:void(0);">管理流程</a></li>
    </ul>
  </div>
</div>
<!----- 导航栏 end ----->
<script type="text/javascript">
    var headjs = {
        flashMenu: function() {
            $("#menu").find("li").bind('click', function() {
                $("#menu").find("li[class='current']").removeClass("current");
                var obj = $(this);
                $(this).addClass("current");
            });
        },
        nongliTime: function() {
            //绑定系统时间
            var elem = $("#time span")[0];
            var nongli = new NongLi();
            NongLi.updateTime(elem);
        }
    };
    $(document).ready(function() {
        //绑定导航菜单动画
    headjs.flashMenu();
        //绑定系统时间
        window.setInterval(headjs.nongliTime, 1000);
    });
</script>
</body>
</html>
